
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Running an application </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp264.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp266.htm" >Next</A>
<!-- End Header -->
<A NAME="CAIDIADH"></A><h1>Running an application </h1>
<A NAME="TI9453"></A><p>When the application seems to be working correctly, you are
ready to run it in regular mode. In regular mode, the application
responds to user interaction and continues to run until the user
exits the application or a runtime error occurs. You can rely on
the default runtime error reporting by PowerBuilder or write a script
that specifies your own error processing. You can also generate
a diagnostic trace of your application's execution.</p>
<A NAME="TI9454"></A><p>For how to analyze your application's
logic and performance, see <A HREF="pbugp266.htm#CAICJCMK">Chapter 33, "Tracing and Profiling Applications ."</A></p>
<p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Running distributed and .NET applications</span> <A NAME="TI9455"></A>Before you can run a PowerBuilder component deployed to an
application server or an application or component deployed to the
.NET Framework, you must deploy it. For more information, see the
chapter on building <ACRONYM title = "E A Server" >EAServer</ACRONYM> components
in <i>Application Techniques</i>
 and <i>Deploying
Applications and Components to .NET</i>
.</p>
<A NAME="TI9456"></A><h2>Running the application</h2>
<A NAME="TI9457"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To run an application:</p>
<ol><li class=fi><p>Do one of the following:<A NAME="TI9458"></A>
<ul>
<li class=fi>In
the System Tree, highlight a target and select Run from the pop-up menu</li>
<li class=ds>Click the Run or Select and Run button on the PowerBar</li>
<li class=ds>Select Run&gt;Run or Run&gt;Select and
Run from the menu bar
</li>
</ul>

                      </p><p>The Run button runs the current target. The current target
displays in bold in the System Tree and its name displays in the
Run button tool tip. The Select and Run button opens a dialog box
that lets you select the target to run.</p><p>PowerBuilder becomes minimized and a button displays on the
Taskbar. Your application executes.</p></li></ol>
<br><A NAME="TI9459"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To stop a running application:</p>
<ol><li class=fi><p>End the application normally, or double-click
the minimized PowerBuilder button or icon to open a response window
from which you can terminate the application.</p></li></ol>
<br><A NAME="CAIBBEHG"></A><h2>Handling errors at runtime</h2>
<A NAME="TI9460"></A><p>A serious error at runtime (such as attempting to access a
window that has not been opened) will trigger the SystemError event
in the Application object if you have not added exception handling
code to take care of the error.</p>
<A NAME="TI9461"></A><h4>If there is no SystemError script</h4>
<A NAME="TI9462"></A><p>If you do not write a SystemError script to handle these errors,
PowerBuilder displays a message box containing the following information:<A NAME="TI9463"></A>
<ul>
<li class=fi>The number and text of the
error message</li>
<li class=ds>The line number, event, and object in which the
error occurred
</li>
</ul>
</p>
<A NAME="TI9464"></A><p>There is also an OK button that closes the message box and
stops the application.</p>
<A NAME="TI9465"></A><h4>If there is a SystemError script</h4>
<A NAME="TI9466"></A><p>If there is a script for the SystemError event, PowerBuilder
executes the script and does not display the message box. Whether
or not you have added <b>TRY</b>/<b>CATCH</b> blocks
to your code to trap errors, it is a good idea to build an application-level
script for the SystemError event to trap and process any runtime
errors that have not been handled, as described in <A HREF="pbugp265.htm#X-REF355687295">"Using the Error
object"</A>.</p>
<A NAME="TI9467"></A><p>For more information about handling exceptions, see <i>Application
Techniques</i>
.</p>
<A NAME="X-REF355687295"></A><h4>Using the Error
object</h4>
<A NAME="TI9468"></A><p>In the script for the SystemError event, you can access the
built-in Error object to determine which error occurred and where
it occurred. The Error object contains the properties shown in <A HREF="pbugp265.htm#CACICCFI">Table 32-3</A>.</p>
<A NAME="CACICCFI"></A><table cellspacing=0 cellpadding=6 border=1 frame="void" rules="all"><caption>Table 32-3: Properties of the Error object</caption>
<tr><th  rowspan="1"  ><A NAME="TI9469"></A>Property</th>
<th  rowspan="1"  ><A NAME="TI9470"></A>Data type</th>
<th  rowspan="1"  ><A NAME="TI9471"></A>Description</th>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9472"></A>Number</td>
<td  rowspan="1"  ><A NAME="TI9473"></A>Integer</td>
<td  rowspan="1"  ><A NAME="TI9474"></A>Identifies the PowerBuilder error.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9475"></A>Text</td>
<td  rowspan="1"  ><A NAME="TI9476"></A>String</td>
<td  rowspan="1"  ><A NAME="TI9477"></A>Contains the text of the error message.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9478"></A>WindowMenu</td>
<td  rowspan="1"  ><A NAME="TI9479"></A>String</td>
<td  rowspan="1"  ><A NAME="TI9480"></A>Contains the name of the window or menu
in which the error occurred.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9481"></A>Object</td>
<td  rowspan="1"  ><A NAME="TI9482"></A>String</td>
<td  rowspan="1"  ><A NAME="TI9483"></A>Contains the name of the object in which
the error occurred. If the error occurred in a window or menu, the
Object property will be the same as the WindowMenu property</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9484"></A>ObjectEvent</td>
<td  rowspan="1"  ><A NAME="TI9485"></A>String</td>
<td  rowspan="1"  ><A NAME="TI9486"></A>Contains the event for which the error
occurred.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9487"></A>Line</td>
<td  rowspan="1"  ><A NAME="TI9488"></A>Integer</td>
<td  rowspan="1"  ><A NAME="TI9489"></A>Identifies the line in the script at
which the error occurred.</td>
</tr>
</table>
<p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Defining your own Error object</span> <A NAME="TI9490"></A>You can customize your own version of the Error object by
defining a class user object inherited from the built-in Error object.
You can add properties and define object-level functions for your
Error object to allow for additional processing. In the Application
painter, you can then specify that you want to use your user object
inherited from Error as the global Error object in your application.
For more information, see <A HREF="pbugp132.htm#X-REF351800893">"Building a standard
class user object"</A>.</p>
<A NAME="TI9491"></A><h4>Runtime error numbers</h4>
<A NAME="TI9492"></A><p><A HREF="pbugp265.htm#CACDDBBJ">Table 32-4</A> lists
the runtime error numbers returned in the Number property of the
Error object and the meaning of each number:</p>
<A NAME="CACDDBBJ"></A><table cellspacing=0 cellpadding=6 border=1 frame="void" rules="all"><caption>Table 32-4: PowerBuilder runtime errors</caption>
<tr><th  rowspan="1"  ><A NAME="TI9493"></A>Number</th>
<th  rowspan="1"  ><A NAME="TI9494"></A>Meaning</th>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9495"></A>1</td>
<td  rowspan="1"  ><A NAME="TI9496"></A>Divide by zero.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9497"></A>2</td>
<td  rowspan="1"  ><A NAME="TI9498"></A>Null object reference.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9499"></A>3</td>
<td  rowspan="1"  ><A NAME="TI9500"></A>Array boundary exceeded.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9501"></A>4</td>
<td  rowspan="1"  ><A NAME="TI9502"></A>Enumerated value is out of range for
function.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9503"></A>5</td>
<td  rowspan="1"  ><A NAME="TI9504"></A>Negative value encountered in function.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9505"></A>6</td>
<td  rowspan="1"  ><A NAME="TI9506"></A>Invalid DataWindow row/column
specified.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9507"></A>7</td>
<td  rowspan="1"  ><A NAME="TI9508"></A>Unresolvable external when linking reference.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9509"></A>8</td>
<td  rowspan="1"  ><A NAME="TI9510"></A>Reference of array with null subscript.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9511"></A>9</td>
<td  rowspan="1"  ><A NAME="TI9512"></A>DLL function not found in current application.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9513"></A>10</td>
<td  rowspan="1"  ><A NAME="TI9514"></A>Unsupported argument type in DLL function.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9515"></A>11</td>
<td  rowspan="1"  ><A NAME="TI9516"></A>Object file is out of date and must be
converted to current version.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9517"></A>12</td>
<td  rowspan="1"  ><A NAME="TI9518"></A>DataWindow column type does not match
GetItem type.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9519"></A>13</td>
<td  rowspan="1"  ><A NAME="TI9520"></A>Unresolved property reference.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9521"></A>14</td>
<td  rowspan="1"  ><A NAME="TI9522"></A>Error opening DLL library for external
function.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9523"></A>15</td>
<td  rowspan="1"  ><A NAME="TI9524"></A>Error calling external function <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9525"></A>16</td>
<td  rowspan="1"  ><A NAME="TI9526"></A>Maximum string size exceeded.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9527"></A>17</td>
<td  rowspan="1"  ><A NAME="TI9528"></A>DataWindow referenced in DataWindow object
does not exist.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9529"></A>18</td>
<td  rowspan="1"  ><A NAME="TI9530"></A>Function does not return value.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9531"></A>19</td>
<td  rowspan="1"  ><A NAME="TI9532"></A>Cannot convert <i>name</i> in
Any variable to <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9533"></A>20</td>
<td  rowspan="1"  ><A NAME="TI9534"></A>Database command not successfully prepared.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9535"></A>21</td>
<td  rowspan="1"  ><A NAME="TI9536"></A>Bad runtime function reference.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9537"></A>22</td>
<td  rowspan="1"  ><A NAME="TI9538"></A>Unknown object type.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9539"></A>23</td>
<td  rowspan="1"  ><A NAME="TI9540"></A>Cannot assign object of type <i>name</i> to
variable of type <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9541"></A>24</td>
<td  rowspan="1"  ><A NAME="TI9542"></A>Function call does not match its definition.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9543"></A>25</td>
<td  rowspan="1"  ><A NAME="TI9544"></A>Double or Real expression has overflowed.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9545"></A>26</td>
<td  rowspan="1"  ><A NAME="TI9546"></A>Field <i>name</i> assignment
not supported.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9547"></A>27</td>
<td  rowspan="1"  ><A NAME="TI9548"></A>Cannot take a negative to a noninteger
power.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9549"></A>28</td>
<td  rowspan="1"  ><A NAME="TI9550"></A>VBX Error: <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9551"></A>29</td>
<td  rowspan="1"  ><A NAME="TI9552"></A>Nonarray expected in ANY variable.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9553"></A>30</td>
<td  rowspan="1"  ><A NAME="TI9554"></A>External object does not support data
type <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9555"></A>31</td>
<td  rowspan="1"  ><A NAME="TI9556"></A>External object data type <i>name </i><i></i>not
supported.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9557"></A>32</td>
<td  rowspan="1"  ><A NAME="TI9558"></A>Name not found calling external object
function <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9559"></A>33</td>
<td  rowspan="1"  ><A NAME="TI9560"></A>Invalid parameter type calling external
object function <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9561"></A>34</td>
<td  rowspan="1"  ><A NAME="TI9562"></A>Incorrect number of parameters calling
external object function <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9563"></A>35</td>
<td  rowspan="1"  ><A NAME="TI9564"></A>Error calling external object function <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9565"></A>36</td>
<td  rowspan="1"  ><A NAME="TI9566"></A>Name not found accessing external object
property <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9567"></A>37</td>
<td  rowspan="1"  ><A NAME="TI9568"></A>Type mismatch accessing external object
property <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9569"></A>38</td>
<td  rowspan="1"  ><A NAME="TI9570"></A>Incorrect number of subscripts accessing
external object property <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9571"></A>39</td>
<td  rowspan="1"  ><A NAME="TI9572"></A>Error accessing external object property <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9573"></A>40</td>
<td  rowspan="1"  ><A NAME="TI9574"></A>Mismatched ANY datatypes in expression.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9575"></A>41</td>
<td  rowspan="1"  ><A NAME="TI9576"></A>Illegal ANY data type in expression.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9577"></A>42</td>
<td  rowspan="1"  ><A NAME="TI9578"></A>Specified argument type differs from
required argument type at runtime in DLL function <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9579"></A>43</td>
<td  rowspan="1"  ><A NAME="TI9580"></A>Parent object does not exist.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9581"></A>44</td>
<td  rowspan="1"  ><A NAME="TI9582"></A>Function has conflicting argument or
return type in ancestor.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9583"></A>45</td>
<td  rowspan="1"  ><A NAME="TI9584"></A>Internal table overflow; maximum number
of objects exceeded.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9585"></A>46</td>
<td  rowspan="1"  ><A NAME="TI9586"></A>Null object reference cannot be assigned
or passed to a variable of this type.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9587"></A>47</td>
<td  rowspan="1"  ><A NAME="TI9588"></A>Array expected in ANY variable.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9589"></A>48</td>
<td  rowspan="1"  ><A NAME="TI9590"></A>Size mismatch in array-to-object conversion.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9591"></A>49</td>
<td  rowspan="1"  ><A NAME="TI9592"></A>Type mismatch in array-to-object conversion.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9593"></A>50</td>
<td  rowspan="1"  ><A NAME="TI9594"></A>Distributed Service Error: <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9595"></A>51</td>
<td  rowspan="1"  ><A NAME="TI9596"></A>Bad argument list for function/event: <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9597"></A>52</td>
<td  rowspan="1"  ><A NAME="TI9598"></A>Distributed Communications Error: <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9599"></A>53</td>
<td  rowspan="1"  ><A NAME="TI9600"></A>The server <i>name</i> could
not be located. It was probably not started.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9601"></A>54</td>
<td  rowspan="1"  ><A NAME="TI9602"></A>The server <i>name</i> is
rejecting new messages. It is in the process of shutting down.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9603"></A>55</td>
<td  rowspan="1"  ><A NAME="TI9604"></A>The request caused an abnormal termination.
The connection has been closed.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9605"></A>56</td>
<td  rowspan="1"  ><A NAME="TI9606"></A>A message was not fully transmitted.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9607"></A>57</td>
<td  rowspan="1"  ><A NAME="TI9608"></A>This connection object is not connected
to a server.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9609"></A>58</td>
<td  rowspan="1"  ><A NAME="TI9610"></A>Object instance does not exist.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9611"></A>59</td>
<td  rowspan="1"  ><A NAME="TI9612"></A>Invalid column range.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9613"></A>60</td>
<td  rowspan="1"  ><A NAME="TI9614"></A>Invalid row range.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9615"></A>61</td>
<td  rowspan="1"  ><A NAME="TI9616"></A>Invalid conversion of <i>number</i> dimensional
array to object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9617"></A>62</td>
<td  rowspan="1"  ><A NAME="TI9618"></A>The server <i>name</i> is
busy and not accepting new connections.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9619"></A>63</td>
<td  rowspan="1"  ><A NAME="TI9620"></A>Function/event with no return
value used in expression.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9621"></A>64</td>
<td  rowspan="1"  ><A NAME="TI9622"></A>Object array expected on left side of
assignment.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9623"></A>65</td>
<td  rowspan="1"  ><A NAME="TI9624"></A>Dynamic function not found. Possible
causes include: pass by value/reference mismatch.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9625"></A>66</td>
<td  rowspan="1"  ><A NAME="TI9626"></A>Invalid subscript for array index operation.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9627"></A>67</td>
<td  rowspan="1"  ><A NAME="TI9628"></A>Null object reference cannot be assigned
or passed to an autoinstantiate.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9629"></A>68</td>
<td  rowspan="1"  ><A NAME="TI9630"></A>Null object reference cannot be passed
to external DLL function <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9631"></A>69</td>
<td  rowspan="1"  ><A NAME="TI9632"></A>Function <i>name</i> cannot
be called from a secured runtime session.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9633"></A>70</td>
<td  rowspan="1"  ><A NAME="TI9634"></A>External DLL function <i>name</i> cannot
be called from a secured runtime session.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9635"></A>71</td>
<td  rowspan="1"  ><A NAME="TI9636"></A>General protection fault occurred.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9637"></A>72</td>
<td  rowspan="1"  ><A NAME="TI9638"></A><i>name</i> failed with
an operating system error code of <i>number.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9639"></A>73</td>
<td  rowspan="1"  ><A NAME="TI9640"></A>Reference parameters cannot be passed
to an asynchronous shared/remote object method.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9641"></A>74</td>
<td  rowspan="1"  ><A NAME="TI9642"></A>Reference parameters cannot be passed
to a shared object method.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9643"></A>75</td>
<td  rowspan="1"  ><A NAME="TI9644"></A>The server has forced the client to disconnect.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9645"></A>76</td>
<td  rowspan="1"  ><A NAME="TI9646"></A>Passing null as a parameter to external
function <i>name</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9647"></A>77</td>
<td  rowspan="1"  ><A NAME="TI9648"></A>Object passed to shared/remote
object method is not a nonvisual user object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9649"></A>78</td>
<td  rowspan="1"  ><A NAME="TI9650"></A>Listening works only in the Enterprise
version of PowerBuilder.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9651"></A>79</td>
<td  rowspan="1"  ><A NAME="TI9652"></A>The argument to <i>name</i> must
be an array.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9653"></A>80</td>
<td  rowspan="1"  ><A NAME="TI9654"></A>The server has timed out the client connection.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9655"></A>81</td>
<td  rowspan="1"  ><A NAME="TI9656"></A>Function argument file creator must be
a four-character string.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9657"></A>82</td>
<td  rowspan="1"  ><A NAME="TI9658"></A>Function argument file type must be a
four-character string.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9659"></A>83</td>
<td  rowspan="1"  ><A NAME="TI9660"></A>Attempt to invoke a function or event
that is not accessible.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9661"></A>84</td>
<td  rowspan="1"  ><A NAME="TI9662"></A>Wrong number of arguments passed to function/event
call.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9663"></A>85</td>
<td  rowspan="1"  ><A NAME="TI9664"></A>Error in reference argument passed in
function/event call.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9665"></A>86</td>
<td  rowspan="1"  ><A NAME="TI9666"></A>Ambiguous function/event reference.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9667"></A>87</td>
<td  rowspan="1"  ><A NAME="TI9668"></A>The connection to the server has been
lost.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9669"></A>88</td>
<td  rowspan="1"  ><A NAME="TI9670"></A>Cannot ask for ClassDefinition Information
on open painter: <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9671"></A>89</td>
<td  rowspan="1"  ><A NAME="TI9672"></A>5.0 style proxy objects are not supported.
Copy the new style proxy that was generated at migration time.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9673"></A>90</td>
<td  rowspan="1"  ><A NAME="TI9674"></A>Cannot assign array of type <i>name</i> to
variable of type array of <i>name.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9675"></A>91</td>
<td  rowspan="1"  ><A NAME="TI9676"></A>Cannot convert <i>name</i> in
Any variable to <i>name</i>. Possible cause: uninitialized
value.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9677"></A>92</td>
<td  rowspan="1"  ><A NAME="TI9678"></A>Required property <i>name</i> is
missing.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9679"></A>93</td>
<td  rowspan="1"  ><A NAME="TI9680"></A>CORBA User Exception: <i>exceptionname.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9681"></A>94</td>
<td  rowspan="1"  ><A NAME="TI9682"></A>CORBA System Exception: <i>exceptionname.</i></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9683"></A>95</td>
<td  rowspan="1"  ><A NAME="TI9684"></A>CORBA Objects cannot be created locally.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9685"></A>96</td>
<td  rowspan="1"  ><A NAME="TI9686"></A>Exception Thrown has not been handled.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9687"></A>97</td>
<td  rowspan="1"  ><A NAME="TI9688"></A>Cannot save <i>name</i> because
of a circular reference problem. Possible causes: <A NAME="TI9689"></A>
<ol>
</li>
<li class=ds>This object references another class, which in turn
references this object.</li>
<li class=ds>Some other circular reference is pointing back to
this object, causing a deadlock condition.
</li>
</ol>
<A NAME="TI9690"></A><p>Suggested actions:<A NAME="TI9691"></A>
<ol>
</li>
<li class=ds>Temporarily
remove the circular reference from the referenced object.</li>
<li class=ds>Make your required changes to this object to refer
to that object.</li>
<li class=ds>Add back the circular reference you removed in step
1.</li>
<li class=ds>Perform a full rebuild (recommended).
</li>
</ol>
</p></td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9692"></A>98</td>
<td  rowspan="1"  ><A NAME="TI9693"></A>Obsolete object reference.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9694"></A>99</td>
<td  rowspan="1"  ><A NAME="TI9695"></A>Error calling method of a PBNI object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9696"></A>100</td>
<td  rowspan="1"  ><A NAME="TI9697"></A>Error loading library containing a PBNI
object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9698"></A>101</td>
<td  rowspan="1"  ><A NAME="TI9699"></A>Error unloading library containing a
PBNI object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9700"></A>102</td>
<td  rowspan="1"  ><A NAME="TI9701"></A>Error creating a PBNI object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9702"></A>103</td>
<td  rowspan="1"  ><A NAME="TI9703"></A>Error destroying a PBNI object.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9704"></A>104</td>
<td  rowspan="1"  ><A NAME="TI9705"></A>Error calling PowerBuilder system function <i>functionname</i>.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9706"></A>105</td>
<td  rowspan="1"  ><A NAME="TI9707"></A>Executing a HALT statement in a server
component is strictly forbidden.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9708"></A>106</td>
<td  rowspan="1"  ><A NAME="TI9709"></A>Function is reserved or not yet implemented.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9710"></A>107</td>
<td  rowspan="1"  ><A NAME="TI9711"></A>Argument is out of range.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9712"></A>108</td>
<td  rowspan="1"  ><A NAME="TI9713"></A>Not enough memory to execute the operation.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI9714"></A>109</td>
<td  rowspan="1"  ><A NAME="TI9715"></A>Cannot assign a null value to array variables.</td>
</tr>
</table>
<A NAME="TI9716"></A><p>Some errors terminate the application immediately. They do
not trigger the SystemError event.</p>
<A NAME="TI9717"></A><h4>SystemError event scripts</h4>
<A NAME="TI9718"></A><p>A typical script for the SystemError event includes a <b>CHOOSE
CASE</b> control structure to handle specific errors. To stop
the application, include a <b>HALT</b> statement in
the SystemError script.</p>
<p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Caution</span> <A NAME="TI9719"></A>You can continue your application after a SystemError event,
but doing so can cause unpredictable and undesirable effects. Where
the application will resume depends on what caused the error. Typically,
you are better off reporting the problem to the user, then stopping
the application with <b>HALT</b>.</p>
<A NAME="TI9720"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To test the SystemError event script:</p>
<ol><li class=fi><p>Assign values to the properties of the
Error object with the <b>PopulateError</b> function.</p></li>
<li class=ds><p>Call the <b>SignalError</b> function
to trigger the SystemError event.</p><p>The script for the SystemError event executes.</p></li></ol>
<br>
